<template>
  <div id="app">
    <TopNavigation />
    <div id="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import TopNavigation from "./components/TopNavigation.vue";
import { commonReq } from "./api/reqCollection";

export default {
  name: "App",
  components: {
    TopNavigation,
  },
  data() {
    return {
      manageClass: [],
    };
  },
  created() {
    commonReq("/api/manage_class").then((res) => {
      if (res.code == 200) {
        this.manageClass = res.manage_class;
      }
    });
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
#content {
  margin-top: 16px;
}
.content-right {
  box-sizing: border-box;
  padding: 0 29px;
  display: flex;
  flex: 1;
  position: relative;
}
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  /* font-size: 20px; */
  background-color: #052258;
}
.router-link-active {
  text-decoration: none;
}
a {
  text-decoration: none;
}
.el-menu-item {
  color: #ffffff;
}
</style>
